package com.rongke.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.List;

/**
 * @BuyTogetherGoods
 * @拼团商品(buy_together_goods)
 * @version : Ver 1.0
 */
@JsonIgnoreProperties(value = {"handler"})
@TableName("buy_together_goods")
public class BuyTogetherGoods implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:拼团商品id
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:
	 * @字段:goods_id BIGINT(19)
	 */
	private Long goodsId;
	/**
	 * 备注:
	 */
	@TableField(exist = false)
	private Goods goods;







	/**
	 * @备注:拼团价
	 * @字段:buy_together_price DECIMAL(11)
	 */
	private java.math.BigDecimal buyTogetherPrice;


	/**
	 * @备注:最低拼团人数
	 * @字段:need_together_num INT(10)
	 */
	private Integer needTogetherNum;








	/**
	 * @备注:拼团购买限制时间
	 * @字段:buy_together_limit_time DATETIME(19)
	 */
	private Integer buyTogetherLimitTime;



	@TableField(exist = false)
	private List<BuyTogetherUser> btuList;

	public BuyTogetherGoods(){
	}

	public BuyTogetherGoods(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}

	public void setGoodsId(Long goodsId) {
			this.goodsId = goodsId;
			}

	public Long getGoodsId() {
			return this.goodsId;
	}
	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public Goods getGoods() {
		return this.goods;
	}



	public List<BuyTogetherUser> getBtuList() {
		return btuList;
	}

	public void setBtuList(List<BuyTogetherUser> btuList) {
		this.btuList = btuList;
	}

	public void setBuyTogetherPrice(java.math.BigDecimal buyTogetherPrice) {
		this.buyTogetherPrice = buyTogetherPrice;
	}

	public java.math.BigDecimal getBuyTogetherPrice() {
		return this.buyTogetherPrice;
	}


	public void setNeedTogetherNum(Integer needTogetherNum) {
		this.needTogetherNum = needTogetherNum;
	}

	public Integer getNeedTogetherNum() {
		return this.needTogetherNum;
	}



	public Integer getBuyTogetherLimitTime() {
		return buyTogetherLimitTime;
	}

	public void setBuyTogetherLimitTime(Integer buyTogetherLimitTime) {
		this.buyTogetherLimitTime = buyTogetherLimitTime;
	}


}
